<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
		+ request.getServerName() + ":" + request.getServerPort()
		+ path + "/";
%>  
<!--==================================后台传过来的数据============================  -->
<div class="none">
	<div id="currentPage">${page}</div>
	<div id="totalPages">${totoalPage}</div>
	<div id="currentCocourseCode">${cocourseCode}</div>
	<div id="currentCid">${cid}</div>
</div>
<div class="Box" style="margin-top:15px;"  >
	<div class="Box-head Border" style="padding-left:25px;" ><label class="Labelstyle">考试题目管理</label></div>
	<div class="Box-content"  style="padding:25px;height:auto;">
	    	<!-- ==========================显示的选择菜单===============================-->
		<div class="funxtion Box-head Border " style="padding-top:20px;padding-bottom:20px;margin-bottom:10px;">
			<div class="span3 offset1 ">
				<select id="courseName">
				   <option value='0'>不限</option>
					<c:forEach var="coName" items="${courseName}">
						<option value=${coName.cocourseCode}>${coName.coname}</option>
					</c:forEach>
				</select>
			</div>
			<div class="span2 offset1">
			<input type="button" class="btn btn-info"  id="selsect" value="查询">
			</div>
		</div>

		<div>
		<c:forEach items="${topicByCourse}" var="topic" varStatus="i">
			<div class="well radioGroup">
				<p>${i.count}：&nbsp;&nbsp; ${topic.ttopic} ${topic.tcorrectIndex}</p>
				<p>
				<c:forEach items="${topic.ansList }" var="ta" varStatus="j">
					<c:if test="${topic.tcorrectIndex==j.index}">
						<c:set var="red" value="style='color:#f00';"/>
					</c:if>						
					<c:if test="${topic.tcorrectIndex!=j.index}">
						<c:set var="red" value=""/>
					</c:if>				
					<c:if test="${j.index==0}">
						<c:set var="op" value="A:"/>
					</c:if>		
					<c:if test="${j.index==1}">
						<c:set var="op" value="B:"/>
					</c:if>		
					<c:if test="${j.index==2}">
						<c:set var="op" value="C:"/>
					</c:if>		
					<c:if test="${j.index==3}">
						<c:set var="op" value="D:"/>
					</c:if>
					
					<div ${red}>${op}${ta}</div>
				</c:forEach>
				</p>
				<p>
				答案解析：${topic.tanswerAnalysis }
				</p>
			</div>
		</c:forEach>
	</div>
     <div id="example" class="center"></div>
		
	</div>
</div>
<script src="<%=basePath%>JS/ExamsInformation.js"></script>